import { defineStore } from "pinia";
import type { activeMenuType } from "@/router/type";

interface tabbarState {
  activeMenu: activeMenuType;
}

const tabbarStore = defineStore("tabbar", {
  state: (): tabbarState => ({
    activeMenu: "Home"
  }),
  actions: {
    setActiveMenu(val: activeMenuType) {
      this.activeMenu = val;
    }
  }
});

export default tabbarStore;
